package com.hb.web;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

// Spring 提供了一种机制，能够通过 @ResponseStatus 注解将异常映射为 HTTP 状态码
// 将异常映射为 HTTP 状态 404
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Spittle Not Found") // 将异常映射为 HTTP 状态 404
public class SpittleNotFoundException extends RuntimeException {
}
